<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02边框</title>
  <style>
    #d1{
      width: 100px;
      height: 100px;
      border: 10px groove red;
      /*设置圆角 值越大越远超过宽高一半为正圆*/
      border-radius: 60px;
    }
    #d2{
      width: 100px;
      height: 100px;
      border: 10px groove blue;
      /*给元素添加内边距默认情况下会影响宽高*/
      padding-left: 50px;
      padding-top: 50px;
      /*添加下面样式之后，内边距不影响所占宽高*/
      box-sizing: border-box;
    }

    body{
      /*去掉外边距margin
      */
      margin: 0;}
  </style>
</head>
<body>
<div id="d1">边框测试</div>
<div id="d2">内边距</div>
</body>
</html>